package com.campsys.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.campsys.entity.TeachingUnit;
import com.campsys.service.dto.StudentCourseDTO;
import com.campsys.service.dto.StudentLearningDTO;
import com.campsys.service.dto.StudentRollCallDTO;

public interface StudentService {
    
    IPage<StudentCourseDTO> getMyCourses(Page<StudentCourseDTO> page, Long studentId);
    
    IPage<TeachingUnit> getCourseUnits(Page<TeachingUnit> page, Long courseId, Long studentId);
    
    StudentLearningDTO getUnitLearning(Long unitId, Long studentId);
    
    void startLearning(Long unitId, Long studentId);
    
    void completeLearning(Long unitId, Long studentId);
    
    String getDocumentUrl(Long unitId, Long studentId);
    
    String getVideoUrl(Long unitId, Long studentId);
    
    IPage<StudentRollCallDTO> getRollCallList(Page<StudentRollCallDTO> page, Long courseId, Long studentId);
    
    void signRollCall(Long rollCallId, Long studentId);
} 